home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / mlock.man < prev    next >
Encoding:
Text File  |  1991-02-02  |  1.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. MLOCK                 C Library Procedures                  MLOCK
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      mlock, munlock - lock and unlock pages in memory.
  10.  
  11. SSYYNNOOPPSSIISS
  12.      iinntt mmlloocckk((aaddddrr,, lleenn))
  13.      iinntt mmuunnlloocckk((aaddddrr,, lleenn))
  14.      ccaaddddrr__tt aaddddrr;;
  15.      iinntt lleenn;;
  16.  
  17. DDEESSCCRRIIPPTTIIOONN
  18.      _M_l_o_c_k takes an address range and locks the associated pages
  19.      into physical memory.
  20.  
  21.      _M_u_n_l_o_c_k takes an address range and unlocks the associated
  22.      pages so they can be paged out.
  23.  
  24. RREETTUURRNN VVAALLUUEE
  25.      _M_l_o_c_k and _M_u_n_l_o_c_k return 0 if they are successful.  Other-
  26.      wise they return -1 and an error code is returned in _e_r_r_n_o.
  27.  
  28. BBUUGGSS
  29.      These functions don't have much error checking.  Pages that
  30.      are locked down and not unlocked may remain unusable after
  31.      the process terminates.
  32.  
  33. SSEEEE AALLSSOO
  34.      mmap(2)
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0             November 19, 1989                       1
  64.  
  65.  
  66.  
  67.